<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div class="business-padding">
	<table cellpadding="0" cellspacing="0" border="0" class="infor-table">
		<tr>
			<td align="right">
				<input id="queryCreditApplyId" name="queryCreditApplyId" type="hidden" />
				<input id="creditQueryId" name="creditQueryId" type="hidden" />
				<input id="dealerId" name="dealerId" type="hidden" />
				<input id="customerId" name="customerId" type="hidden" />
				<label class="control-label np">客户姓名：</label>
			</td>
			<td>
				<div class="control-div np" id="customerName"><label id="customerName"></label></div>
			</td>
			<td align="right">
				<label class="control-label np">身份证号码：</label>
			</td>
			<td>
				<div class="control-div np" id=""><label id="customerNo"></label></div>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="control-label np">业务编号：</label>
			</td>
			<td>
				<div class="control-div np" id="busiCode"><label id="busiCode"></label></div>
			</td>
			
			<td align="right">
				<label class="control-label">业务部门：</label>
			</td>
			<td>
				<div class="control-div np" id="orgName"><label id="orgName"></label></div>
			</td>
		</tr>
		
		<tr>
			<td align="right">
				<label class="control-label np">信贷专员：</label>
			</td>
			<td>
				<div class="control-div np" id="salesmanName"><label id="salesmanName"></label></div>
			</td>
			<td align="right">
				<label class="control-label np">订单类型：</label>
			</td>
			<td>
				<div class="control-div yes-green np" id="channelType"><label id="channelTypeDisplay"></label></div>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="control-label np">经销商类别：</label>
			</td>
			<td>
				<div class="control-div np" id="dealerLevel" name="dealerLevel" ><label id="dealerLevelDisplay"></label></div>
			</td>
			<td align="right">
				<label class="control-label np">经销商：</label>
			</td>
			<td>
				<div class="control-div np" id="dealerName" ><label id="dealerName"></label></div>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="control-label np">贷款银行：</label>
			</td>
			<td colspan="3">
				<div class="control-div np" id="" name="" ><label id="loanBankDisplay"></label></div>
			</td>
		</tr>
		<tr>	
			<td align="right">
				<label class="control-label">历史交易：</label>
			</td>
			<td colspan="5">
				<div class="control-div" id="historyBusiness"><label id="historyBusiness"></label></div>
			</td>
		</tr>	
	</table>
</div>
<!-- public quote -->
<%@include file="/jsp/comm_js_include.jsp"%>
<script type="text/javascript">
	$(function(){
		$.dpAjax({
			  show:false,
	          url: '${basePath}/YwBusinessCommonController/getCommonBusinessInfo',
	          data: {"busiId":$.getUrlData("busiId")},
	          success: function (datas) {
	        	  if(datas.flag == "100100"){
		        	  if(datas.ywBusinessDetail!=null){
			          	  document.getElementById("customerName").innerText=datas.ywBusinessDetail.customerName;
			          	  document.getElementById("customerNo").innerText=datas.ywBusinessDetail.customerNo;
			          	  document.getElementById("busiCode").innerText=datas.ywBusinessDetail.busiCode;
			          	  document.getElementById("orgName").innerText=datas.ywBusinessDetail.orgName;
			          	  document.getElementById("salesmanName").innerText=datas.ywBusinessDetail.salesmanName;
			          	  document.getElementById("dealerName").innerText=datas.ywBusinessDetail.dealerName;
			          	  document.getElementById("channelTypeDisplay").innerText=datas.ywBusinessDetail.channelTypeDisplay;
			          	  document.getElementById("dealerLevelDisplay").innerText=datas.ywBusinessDetail.dealerLevel;
		        	  }
		          	  if(datas.ywBusinessLoan!=null){
			          	  document.getElementById("loanBankDisplay").innerText=datas.ywBusinessLoan.loanBankDisplay;
		          	  }
		        	  document.getElementById("historyBusiness").innerText=datas.historyBusiness;
		              parent.layer.close(parent.addlayer);
	        	  }
	          }
	      });
	});
</script>